Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add getPathRelativeToRoot as a public method in the Media model #3026

Merged
merged 4 commits into from
Sep 12, 2022

Conversation

emielmolenaar
Copy link
Contributor

Add getPathRelativeToRoot as a public method in the Media model for convenience. For example, we use this to get the contents of a conversion via the filesystem (not via a URL) to perform actions based on this conversion.

The method getPath doesn't work for us because we have configured a root path for the S3 disks where the media is stored.

@freekmurze
Copy link
Member

Could you add a test for that method?

@emielmolenaar
Copy link
Contributor Author

Done!

@freekmurze freekmurze merged commit 15e28e5 into spatie:main Sep 12, 2022
@freekmurze
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants